For fun Halloween analysis, FiveThirtyEight asked its readers to vote in random match-ups of 83 candies and two coins (a quarter or a dime) to choose the most desirable Halloween handout. Author Walt Hickey then scoured for data on said candies - price per unit, chocolate content, nougat, nuts, etc - to find out if there was some method to the sugar-induced madness. Most of the variables are binary 0/1 for 'Yes/No' about a candy. Three columns are percentages: sugar content, price, and win percentage (the outcome).
## chocolate fruity caramel peanutyalmondy nougat crispedricewafer
## 100 Grand 1 0 1 0 0 1
## 3 Musketeers 1 0 0 0 1 0
## One dime 0 0 0 0 0 0
## One quarter 0 0 0 0 0 0
## Air Heads 0 1 0 0 0 0
## Almond Joy 1 0 0 1 0 0
## hard bar pluribus sugarpercent pricepercent winpercent
## 100 Grand 0 1 0 0.732 0.860 66.97173
## 3 Musketeers 0 1 0 0.604 0.511 67.60294
## One dime 0 0 0 0.011 0.116 32.26109
## One quarter 0 0 0 0.011 0.511 46.11650
## Air Heads 0 0 0 0.906 0.511 52.34146
## Almond Joy 0 1 0 0.465 0.767 50.34755